package com.xiaoxu.scala_base.code._4_Scala隐式转换.JavaFileToScallaFile

import java.io.File

//导入隐式转换
//import com.xiaoxu.scala_base.code._4_Scala隐式转换.ImplicitAspect._

object JavaFileToScallaFile {

  def main(args: Array[String]): Unit = {

    implicit def file2RichFile(file: File): RichFile = new RichFile(file)

    val file = new File("data/student.data")



    val txt = file.read()
    println(txt)

  }

}
